package persentation.presentLogin;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class Title extends JPanel{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static Image TITLE=new ImageIcon("Graphics/loginGraphics/title.png").getImage();

	private ImageIcon imageIcon;
	private JLabel imageLabel;
	public Title(){
		setSize(643,489);
		setLayout(null);
		setBackground(Color.BLUE);
		JLabel label=new JLabel("欢迎使用南京大学选课系统！NJU");
		label.setFont(new Font("黑体",Font.PLAIN,60));
		label.setBounds(31, -5, 1094,162);
		add(label);
		
		
		
		imageIcon=new ImageIcon("Graphics/loginGraphics/buttonBottom.png");
		imageLabel=new JLabel(imageIcon);
	
	}
	public void paint(Graphics g){
		g.drawImage(TITLE, 0, 0, 1100,500,0,0,1100,500,null);
	}

}
